package org.unisannio.picture.broadcast.remote;

import org.unisannio.util.Converter;

import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.provider.MediaStore;
import android.util.Log;

public class RemoteReceiver extends BroadcastReceiver {
		
	private final static String TAG="RemoteReceiver";
		
		@Override
		public void onReceive(Context context, Intent intent) {
			Log.d(TAG,"onReceive");
			Log.d(TAG, intent.toUri(0));
			Intent i=new Intent(context,ShowImage.class);
	    	i.putExtra(MediaStore.EXTRA_OUTPUT, intent.getStringExtra(Converter.INTENT_MDATA));
	    	i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
	    	context.startActivity(i);
	    	
	    	
	    	
	    	
		}

}
